package com.chen.apiboos.service;

import com.chen.apiboos.remote.ServiceDriverUserClient;
import com.chen.internalcommon.dto.DriverUser;
import com.chen.internalcommon.dto.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author chenLiuPing
 **/
@Service
@Slf4j
public class DriverUserService {

    @Autowired
    private ServiceDriverUserClient serviceDriverUserClient;

    public ResponseResult addDriverUser(DriverUser driverUser) {
        log.info("addDriverUser start");
        return serviceDriverUserClient.addDriverUser(driverUser);
    }

    public ResponseResult updateDriverUser(DriverUser driverUser) {
        log.info("添加车辆信息：{}", driverUser);
        return serviceDriverUserClient.updateDriverUser(driverUser);
    }

}
